home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
news
/
selectv1.tar
/
selectv1
/
Makefile
< prev
next >
Wrap
Makefile
|
1993-09-04
|
864b
|
46 lines
# Makefile for selectnews
# Eugene Kim -- August 11, 1993
CC = gcc
# definitions: if using curses, uncomment below DEFS and comment out
# the other DEFS
#DEFS =
DEFS = -DNCURSES
# libraries: if using curses, uncomment below LIBS and comment out
# the other LIBS
#LIBS = -lcurses -ltermcap
LIBS = -lncurses
CFLAGS = -O6 -N $(DEFS)
EXE_DIR = /usr/bin
MAN_DIR = /usr/man
OBJ = main.o diskio.o screenio.o global.o dllist.o
all: selectnews
selectnews: $(OBJ)
$(CC) $(CFLAGS) -o selectnews $(OBJ) $(LIBS)
dllist.o: global.h dllist.h
global.o: global.h
screenio.o: headers.h
diskio.o: headers.h
main.o: dllist.h headers.h
install: selectnews
mkdir -p $(EXE_DIR)
cp selectnews $(EXE_DIR)
chown root $(EXE_DIR)/selectnews
cp selectnews.1 $(MAN_DIR)/man1
chown root $(MAN_DIR)/man1/selectnews.1
clean:
rm -f *.o selectnews core